// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: AdminSetDefaultAction.java

package com.market.web.action;

import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;

import com.market.web.XMLLoader;

// Referenced classes of package com.market.web.action:
// BaseAction

public class AdminSetDefaultAction extends BaseAction2
{

    public AdminSetDefaultAction()
    {
    }
    public int getCoinRate()
    {
        return coinRate;
    }

    public void setCoinRate(int coinRate)
    {
        this.coinRate = coinRate;
    }

    public int getDefaultVipPriceRate()
    {
        return defaultVipPriceRate;
    }

    public void setDefaultVipPriceRate(int defaultVipPriceRate)
    {
        this.defaultVipPriceRate = defaultVipPriceRate;
    }

    public int getVipCoin()
    {
        return vipCoin;
    }

    public void setVipCoin(int vipCoin)
    {
        this.vipCoin = vipCoin;
    }

    public int vipCoin;

    public int coinRate;

    public int defaultVipPriceRate;

    public String execute() throws Exception
    {
        //DefaultValueForm dvf = (DefaultValueForm)form;
        XMLLoader.setDefaultVipPriceRate(getDefaultVipPriceRate());
        XMLLoader.setVipCoin(getVipCoin());
        XMLLoader.setCoinRate(getCoinRate());
        ActionMessages message = new ActionMessages();
        message.add("org.apache.struts.action.GLOBAL_MESSAGE", new ActionMessage(
                "\u9ED8\u8BA4\u503C\u8BBE\u7F6E\u6210\u529F", false));
        //saveMessages(request, message);
        return SUCCESS;//mapping.findForward("success");
    }
}
